<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="system" tagdir="/WEB-INF/tags/system/"%>
<%@ include file="/common/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>美瀛商旅网</title>
<script type="text/javascript">
	function mealOrder(url){
		var tips=false;
		if(!tips){
			tips="您确定要改签当前时间吗？";
		}
		if(confirm(tips)){
			location.href=url;
			alert("改签申请中");
		}
	}
</script>
</head>
<body>
<!--right-->
	<ul class="consumption_top">
		 <div id="sale">
    	<ul>
        <span class="sale_chinese">您的订单</span>
        </ul>        
    	<dl class="sliderbox" id="slider2">                  
        <dt class="open">
        <span class="title_hotelname">&gt;&gt; 机票订单</span>
        </dt>
        <dd>
          <div class="text">
         <table width="100%"  border="0" cellspacing="0" cellpadding="0">
  			<tr align="center">
    			<td class="order_table" width="20%">订单号</td>
    			<td class="order_table" width="20%">起飞达到</td>
				<td class="order_table" width="10%">航班日期</td>
				<td class="order_table" width="10%">航班号</td>
   			    <td class="order_table" width="10%">状态</td>
				<td class="order_table" width="10%">订单总价</td>
				<td class="order_table" width="10%">订单日期</td>
				<td class="order_table" width="10%">操作</td>
  			</tr>
  			
  			<c:forEach var="bOrderItem" items="${bOrders.list}">
  				
			<tr align="center">
    			<td class="message_blueinfo"><a href="${ctxPath}/member/order/orders.do?cmd=viewDetail&id=${bOrderItem.id}">${bOrderItem.orderNo}</a></td>
    			<td class="message_blueinfo">	
					<c:if test="${not empty bOrderItem.flights}">
						<c:forEach var="flight" items="${bOrderItem.flights}" >
						${flight.depTime}&nbsp;${flight.boardPointName}<br/>
							${flight.arrTime}&nbsp;${flight.offPointName}
						</c:forEach>
					</c:if>&nbsp;
				</td>
				<td class="message_blueinfo">
					<c:if test="${not empty bOrderItem.flights}">
						<c:forEach var="flight" items="${bOrderItem.flights}" >
							${flight.depDay}<br/>
						</c:forEach>
					</c:if>&nbsp;
				</td>
    			<td class="message_blueinfo">
    				<c:if test="${not empty bOrderItem.flights}">
						<c:forEach var="flight" items="${bOrderItem.flights}" >
							${flight.code}<br/>
						</c:forEach>
					</c:if>&nbsp;
    			</td>
				<td class="message_blueinfo">
					<font color="#FF0000">
					<fmt:message key="bOrder.status${bOrderItem.status }"></fmt:message>
					</font>
				</td>
				<td class="message_blueinfo">￥${bOrderItem.allPrice}</td>
				<td class="message_blueinfo"><fmt:formatDate value="${bOrderItem.createTime}" pattern="yyyy-MM-dd HH:mm:ss" /> </td>
				<td class="message_blueinfo">
					<system:memberOperateTag showStyle="list" value="${bOrderItem.status}" orderId="${bOrderItem.id}"/>
				</td>
  			</tr>
			</c:forEach>
		</table>
		<center>
		    <c:set var='queryResult' value='${bOrders}' scope="page"/>
  			<%@include file="/common/queryResult_Paging.jsp" %>
  			</center>
          </div>
        </dd>
	</dl>

<!--     <script type="text/javascript">
        var slider2=new accordion.slider("slider2");
        slider2.init("slider2",0,"open");
	</script> -->
    </div>    
	</ul>
	<ul class="message_last">&nbsp;&nbsp;&nbsp;&nbsp;
	<font color="#FF0000">&lowast;</font>&nbsp;&nbsp;点击 订单号 即可进入详细信息页面。订单到期后，系统将会自动删除订单信息，如要支付需重新预订。</ul>
</div>
</body>
</html>

